package com.tiny.mirror.service.product.domain.platform.repository;

import com.tiny.mirror.basic.db.domain.Aggregate;
import com.tiny.mirror.basic.db.mybatis.repository.RepositoryEnhance;
import com.tiny.mirror.service.product.domain.platform.Platform;
import java.util.List;

/**
 * @author: chenhao
 * @description:
 * @date: 2023/8/28
 **/
public interface PlatformRepository extends RepositoryEnhance<Platform> {

  Aggregate<Platform> findById(long id);

  Platform findPlatformById(long id);

  List<Platform> findPlatformByAppId(long appId);

  void savePlatformAbility(long id, List<Long> abilityIds);
}
